<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
        .normal .box1 {
            width: 100px;
            height: 100px;
            margin-bottom: 100px;
            border:2px solid black;
            background-color: red;
            position: relative;
        }

        .normal .box2 {
            width: 100px;
            height: 100px;
            margin-top: 100px;
            border:2px solid black;
            background-color: red;
            position: relative;
            left: 10px;
        }

        .special .box1 {
            width: 200px;
            height: 200px;
            margin-top: 50px;
            border:2px solid black;
            background-color: red;
        }

        .special .box2 {
            width: 50px;
            height: 50px;
            margin-top: 50px;
            border:2px solid black;
            background-color: green;
      
        }
    </style>
</head>
<body>
    <div class="normal">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>




    <!-- <div class="special">
        <div class="box1">
            <div class="box2">

            </div>
        </div>
      

    </div> -->
</body>
</html>